import org.springframework.context.support.ClassPathXmlApplicationContext;
import xyz.weizhi.pojo.User;

/**
 * @Author milian
 * @Date 2021/9/4 0004 12:04
 */
public class testSpring {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml");
        User user = (User) context.getBean("user");
        System.out.println(user.toString());
    }
}
